package com.boyinet.activation.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 *
 * </p>
 *
 * @author lengchunyun
 * @since 2020-12-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("`order`")
public class Order implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId()
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    private String name;

    private String title;

    private String cdk;

    private String mac;

    private String companyName;

    private String phone;

    private String email;

    private String address;

    private String ip;

    private String softwareCode;

    private String softwareName;

    private String softwareVersion;

    private String systemVersion;

    private String handler;

    private String remark;

    private Integer deadline;

    @JsonFormat()
    private LocalDateTime createTime;

    @JsonFormat()
    private LocalDateTime useTime;


}
